<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>管理界面</h1>
    <span>欢迎您: xxx</span>
    <script>
      //   1. 获取浏览器地址栏的查询字符串的username的值
      const username = location.search.split('=')[1]
      //   2. 给span标签重新赋值内容
      document.querySelector('span').innerText = '欢迎您: ' + username
    </script>
  </body>
</html>
